
@import "uview-ui/theme.scss";

// 项目核心色调
$main_color: #ff5061;
$main_color_s: #ff3150;
$main_color_s2: #ff2b63;
$main_color2: #191919;
$main_color2_s: #3a3a3a;
$main_color3: #282828;
$main_color4: #b4b4b4;    //主要副标题颜色
$main_color5: #f7f7f7;    //主要文字颜色
$star_s: #FEDA30;
$main_bg_color: #242526;
$price_color: #f04f64;
$lottery_bg_color: #191919;
$lottery_txt_color: #ff2314;
$lottery_icon_color: #fe3f3f;
$lottery_btn_color: #ff6038;
$nav_bar_height: 44px;
$tab_bar_height: 50px;

@mixin bg_item($height:40vw,$color1:$main_color2,$color2:$main_bg_color){
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: $height;
	background: linear-gradient(to bottom, $color1 40%, $color2);
	z-index: 1;
}
@mixin text_over_style($row:2){
	overflow:hidden; 
	text-overflow:ellipsis;
	display:-webkit-box; 
	-webkit-box-orient:vertical;
	-webkit-line-clamp:$row; 
}
@mixin page_button(){
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	.btn{
		width: 92%;
		line-height: 13vw;
		height: 13vw;
		font-size: 4.5vw;
		font-weight: bold;
		letter-spacing: 3rpx;
		color: $main_color5;
		border-radius: 7vw;
		background: $main_color;
		text-align: center;
	}
}
@mixin card_style(){
	width: 100%;
	padding: 4vw;
	border-radius: 3vw;
	background: $main_color2_s;
}
@mixin mask_style(){
	position: fixed;
	z-index: 98;
	width: 100%;
	height: 100vh;
	background: rgba(0, 0, 0, 0.7);
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	.mask_box{
		background: $main_color2_s;
		border-radius: 3vw;
	}
}
@mixin animation_mask_style() {
	.mask_active{
		opacity: 1 !important;
		background: rgba(0, 0, 0,0.7) !important;
		height: 100vh !important;
	}
	.mask{
		position: fixed;
		width: 100%;
		height: 0;
		overflow: hidden;
		opacity: 0;
		transition: opacity 0.25s;
		bottom: 0;
		left: 0;
		z-index: 100;
		.mask_item{
			width: 100%;
			height: 100%;
			position: relative;
		}
	}
	.mask_box_buttom{
		width: 100%;
		position: absolute;
		bottom: 0;
		background: $main_color2_s;
		border-radius: 3vw 3vw 0 0;
		transition: max-height 0.25s;
		max-height: 0;
		padding: 4vw 4% 6vw;
	}
	.mask_box_active_buttom{
		max-height: 80vh !important;
	}
	.mask_box_center{
		width: 80%;
		margin-left: 10%;
		min-height: 50vw;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		background: $main_bg_color;
		border-radius: 3vw;
		opacity: 0;
		transition: opacity 0.25s;
		padding: 0;
	}
	.mask_box_active_center{
		opacity: 1 !important;
	}
}
